function init_global_finish_grinding

% initialize values for global variables

global NUMBER_OF_EVENTS LENGTH BIG TNOW MAINT_COST REPAIR_COST SALES_REVENUE EXP_RATE EMP_DIST
global SHAPE1 SCALE1 SHAPE2 SCALE2 A3 B3 B U L MU STATES_MAX NET_ITERMAX ISTAR THRESHOLD
% types of events 1=termination; 2=produce;3=repair; 4=maintenance 
ISTAR=1;

global ENCODER_UL_PC % upper limit for encoder for likely value of production count in neuron



NET_ITERMAX=2;
NUMBER_OF_EVENTS = 4; 

EMP_DIST=[0.000,0.000,0.0015,0.0017,0.0027,0.0038,0.0052,0.0068,0.0086,0.0107,...
0.0129,0.0154,0.0180,0.0209,0.0240,0.0273,0.0308,0.0346,0.0385,0.0427,...
0.0470,0.0516,0.0564,0.0614,0.0667,0.0721,0.0778,0.0836,0.0876,0.0897];

LENGTH=150000;

BIG=10000001; % has to be bigger than LENGTH 

STATES_MAX=50;

TNOW=0;



% Following are parameters of the uniform distribution for maintenance time

U=1;

L=2;





% Following parameters from unif distribution for repair time

A3=2;

B3=4;





MAINT_COST=20; % cost of one maintenance in dollars

REPAIR_COST=500; % cost of one repair in dollars

SALES_REVENUE=200;

EXP_RATE=0.1;

